﻿using System;
using System.IO;

namespace Qiao.Common.Core
{
    /// <summary>
    /// 文件信息Model
    /// </summary>
    public class FileInfoModel
    {
        /// <summary>
        /// 文件名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 文件大小 单位字节
        /// </summary>
        public long Length { get; set; }

        /// <summary>
        /// 上次修改时间
        /// </summary>
        public DateTime LastWriteTime { get; set; }

        /// <summary>
        /// 上次访问时间
        /// </summary>
        public DateTime LastAccessTime { get; set; }

        /// <summary>
        /// 获取文件是否为只读
        /// </summary>
        public bool IsReadOnly { get; set; }

        /// <summary>
        /// 文件完整路径
        /// </summary>
        public string FullName { get; set; }

        /// <summary>
        /// 文件扩展名
        /// </summary>
        public string Extension { get; set; }

        /// <summary>
        /// 获取表示目录的完整路径的字符串。
        /// </summary>
        public string DirectoryName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }

        /// <summary>
        /// 当前文件或目录的特性。
        /// </summary>
        public FileAttributes Attributes { get; set; }
    }
}
